package com.jiangnan.warehouse_management.dto.response;

import lombok.Data;
import java.sql.Timestamp;
import java.util.List;

@Data
public class CategoryQueryResponse {
    private List<CategoryResponse> list;
    private Long total; // 总记录数
    private Integer page; // 当前页码
    private Integer pageSize; // 每页数量
    @Data
    public static class CategoryResponse {
        private Integer categoryId;
        private String categoryName;
        private String description;
        private Integer parentId;
        private List<CategoryResponse> children;
        private Timestamp createdAt;
        private Timestamp updatedAt;
    }
}